from applications.extensions import db
import datetime

class Groups(db.Model):
    __tablename__='chat_groups'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='ID')
    NickName=db.Column( db.String( 256 ), comment='群名', default='' )
    UserName = db.Column(db.String(20), comment='群id',default='')
    HeadImgUrl=db.Column(db.String(255), comment='头像',default='')
    MemberCount=db.Column(db.String( 10 ), comment='人数' ,default='')
    PYQuanPin=db.Column( db.String( 20 ), comment='拼音' ,default='')
    Signature = db.Column(db.String(20), comment='签名',default='')
    Alias = db.Column(db.String(255), comment='别名', default="")
    IsOwner = db.Column(db.String(255), comment='是否群主')
    OwnerUserName=db.Column( db.String( 255 ), comment='群主ID' ,default='')
    Create_time = db.Column(db.DateTime, default=datetime.datetime.now, comment='创建时间')